c05zaf

c05zaf © Numerical Algorithms Group, 2002.

Purpose

C05ZAF Check user's routine for calculating 1st derivatives

Synopsis

[xp,err] = c05zaf(x,fvec,fjac,fvecp,mode)

Description

 
 C05ZAF is based upon the MINPACK routine CHKDER. It checks the 
 ith gradient for consistency with the ith function by computing 
 a forward-difference approximation along a suitably chosen 
 direction and comparing this approximation with the user-supplied
 gradient along the same direction. The principal characteristic 
 of C05ZAF is its invariance under changes in scale of the 
 variables or functions.
 

Parameters

c05zaf

Required Input Arguments:

x (:)                                 real
fvec (:)                              real
fjac (:,:)                            real
fvecp (:)                             real
mode                                  integer

Output Arguments:

xp (:)                                real
err (:)                               real